/**
 * 
 */
package com.onstar.cn.map.common;

import java.util.List;

/**
 * @author Qiying Gong
 *
 * @Created 2013-4-28
 */
public class SearchResults {

	private long id;
	private QueryType queryType;
	private int pageIndex;
	private int totalPages;
	private List<PoiItemInfo> resultList;
	
	public SearchResults(long id, QueryType type, int pgeIdx, int totalPges, List<PoiItemInfo> results){
		this.id = id;
		this.queryType = type;
		this.pageIndex = pgeIdx;
		this.totalPages = totalPges;
		this.resultList = results;
	}
	/**
	 * @return the queryType
	 */
	public QueryType getQueryType() {
		return queryType;
	}
	/**
	 * @param queryType the queryType to set
	 */
	public void setQueryType(QueryType queryType) {
		this.queryType = queryType;
	}
	/**
	 * @return the pageIndex
	 */
	public int getPageIndex() {
		return pageIndex;
	}
	/**
	 * @param pageIndex the pageIndex to set
	 */
	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}
	/**
	 * @return the totalPages
	 */
	public int getTotalPages() {
		return totalPages;
	}
	/**
	 * @param totalPages the totalPages to set
	 */
	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}
	/**
	 * @return the resultList
	 */
	public List<PoiItemInfo> getResultList() {
		return resultList;
	}
	/**
	 * @param resultList the resultList to set
	 */
	public void setResultList(List<PoiItemInfo> resultList) {
		this.resultList = resultList;
	}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	
	
}
